package cn.coisini.model.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author xiangshaw
 * Description: 角色菜单实体
 */
@Tag(name = "RoleMenu",description = "角色菜单实体")
@Data
@TableName("role_menu")
public class RoleMenu implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "角色菜单实体ID")
    @TableId("id")
    private String id;

    @TableField("role_id")
    @Schema(description = "角色ID")
    private String roleId;

    @TableField("menu_id")
    @Schema(description = "菜单ID")
    private String menuId;
}
